package com.sansi.pencilbook.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;

import java.io.Serializable;

/**
 * 功能说明: 用户对于书籍的行为记录表
 *
 * @author lsy13
 */
@Data
@NoArgsConstructor
@RequiredArgsConstructor
@AllArgsConstructor
public class UserBook implements Serializable {
    private int id;

    //用户ID
    @NonNull
    private int userId;

    //书籍ISBN
    @NonNull
    private String isbn;

    //行为
    @NonNull
    private String behavior;

    @NonNull
    private String time;
}
